#include "string.h"

namespace bit
{
	void test_string()
	{
		string s1;
		s1.append("hello");
		s1.insert(5, " world");
		s1 += "nihao";
		size_t pos = s1.find("wo");
		s1.erase(11);
		string s2(s1);
		s1[10] = 'D';
		cout << s1 << endl;
		cout << s2 << endl;
		cout << pos << endl;
	}
}
int main()
{
	bit::test_string();
	return 0;
}